@import "common.less";

* {
    padding: 0;
    margin : 0;
}

body {
    min-width       : 320px;
    max-width       : 750px;
    margin          : 0 auto;
    height          : 6000px;
    background-color: #f7f7f7;
}

div,
header,
a {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

em,
i {
    font-style: normal;
}

.clearfix::after {
    content   : "";
    display   : block;
    height    : 0;
    visibility: hidden;
    clear     : both;
}

.clearfix {
    *zoom: 1;
}

@number  : 750 / 15;
@bg_color: #FFDB47;

// 头部
header {
    display         : flex;
    flex-direction  : row;
    justify-content : space-between;
    align-items     : center;
    background-color: @bg_color;
    width           : 100%;
    height          : 88rem / @number;
    padding         : 0 34rem/@number;


    .login_img {
        width : 36rem / @number;
        height: 60rem / @number;

        img {
            width : 100%;
            height: 100%;
        }
    }

    .header_img {
        width : 450rem / @number;
        height: 55rem / @number;

        img {
            width : 100%;
            height: 100%;
        }
    }
}

// 搜索
.search {
    position        : relative;
    width           : 100%;
    height          : 92rem / @number;
    background-color: @bg_color;
    padding         : 14rem/@number 24rem/@number;

    a {
        display         : block;
        width           : 702rem/@number;
        height          : 64rem/@number;
        line-height     : 64rem/@number;
        padding         : 0 0 0 90rem/@number;
        background-color: #FFF8DA;
        border-radius   : 46rem/@number;
        color           : #999;
        font-size       : 25rem/@number;
    }

    i {
        position  : absolute;
        left      : 52rem/@number;
        top       : 28rem/@number;
        width     : 36rem/@number;
        height    : 36rem/@number;
        background: url(../images/search.png) no-repeat center center;
    }
}

// banner
.slider {
    position        : relative;
    width           : 100%;
    height          : 260rem/@number;
    background-color: #fff;

    .slider_bgimg {
        width : 100%;
        height: 100%;
    }

    .slider_content {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
        width: 702rem / @number;
        height: 260rem / @number;
        overflow: hidden;
        ul {
            width: 500%;

            transform: translateX(-702rem / @number);
            transition: all .3s;
            li {
                float: left;
            }
            img {
                width: 702rem / @number;
                height: 260rem / @number;
                border-radius: 20rem / @number;
            }
        }
        ol {
            position: absolute;
            left: 50%;
            bottom: 12rem / @number;
            transform: translateX(-50%);
            li {
                float: left;
                width: 8rem / @number;
                height: 8rem / @number;
                background-color: #ccc;
                border-radius: 4rem / @number;
                margin: 0 3rem / @number;

            }
            .current {
                width: 16rem / @number;
                background-color: #fff;
            }
        }
    }
    
}

// 导航
nav {
    height          : 308rem/@number;
    background-color: #fff;
    width           : 100%;
    padding-bottom  : 20rem/@number;

    li {
        float: left;

        a {
            display        : flex;
            flex-direction : column;
            justify-content: flex-end;
            align-items    : center;

            width : 150rem/@number;
            height: 142rem/@number;

            img {
                width : 84rem/@number;
                height: 84rem/@number;
            }

            p {
                margin-top: 5rem/@number;
                font-size : 22rem/@number;
                color     : #666;
            }
        }
    }
}

// images
.images {
    display       : flex;
    flex-direction: row;
    width         : 750rem/@number;
    height        : 220rem/@number;
    margin-bottom : 20rem/@number;

    .opa1 {
        width: 250rem/@number;

    }
}

// images2
.images2 {
    display       : flex;
    flex-direction: row;
    margin-bottom : 20rem/@number;

    img {
        height: 234rem/@number;
    }
}

// 限时购
.xsg {
    display: flex;
    width  : 703rem/@number;
    height : 258rem/@number;
    margin : 0 auto;


    .xsg_l {
        width                 : 350rem/@number;
        background-color      : #fff;
        border-top-left-radius: 20rem/@number;
        // background-color   : #af0;

        .xsg_head {
            h3 {
                color : #333;
                margin: 18rem/@number 8rem/@number 0 24rem/@number;

                font-size: 32rem/@number;
            }

            p {
                color    : #999;
                font-size: 24rem/@number;
                margin   : 4rem/@number 0 0 24rem/@number;
            }
        }

        .xsg_foot {
            ul {
                width          : 350rem/@number;
                display        : flex;
                justify-content: space-around;
                margin-top     : 5rem/@number;
                padding-left   : 28rem/@number;
                box-sizing     : border-box;

                li {
                    width: 149rem/@number;

                    p {
                        width     : 120rem/@number;
                        height    : 28rem/@number;
                        color     : #ff5500;
                        font-size : 26rem/@number;
                        margin-top: 1rem/@number;
                        text-align: center;
                    }

                    img {
                        width: 120rem/@number;
                    }
                }
            }
        }
    }

    .xsg_r {
        position               : relative;
        width                  : 350rem/@number;
        // background-color    : #f0a;
        width                  : 350rem/@number;
        background-color       : #fff;
        border-top-left-radius : 20rem/@number;
        // background-color    : #af0;
        border-top-right-radius: 20rem/@number;


        .xsg_head {
            h3 {
                color : #333;
                margin: 18rem/@number 8rem/@number 0 24rem/@number;

                font-size: 32rem/@number;
            }

            p {
                color    : #999;
                font-size: 24rem/@number;
                margin   : 4rem/@number 0 0 24rem/@number;
            }
        }

        .xsg_foot {
            ul {
                width          : 350rem/@number;
                display        : flex;
                justify-content: space-around;
                margin-top     : 5rem/@number;
                padding-left   : 28rem/@number;
                box-sizing     : border-box;

                li {
                    width: 149rem/@number;

                    p {
                        position   : absolute;
                        bottom     : 12rem/@number;
                        left       : auto;
                        width      : 150rem/@number;
                        height     : 54rem/@number;
                        line-height: 30rem/@number;
                        font-size  : 20rem/@number;
                        color      : #333;
                        background : url(../images/mrg.png) no-repeat center center;
                        margin-top : 1rem/@number;
                        margin-left: -17rem/@number;
                        padding-top: 22rem/@number;
                        box-sizing : border-box;
                        text-align : center;
                    }

                    img {
                        width: 120rem/@number;
                    }
                }
            }
        }
    }

}

// 为你推荐
.xsg_b {
    background-color          : #fff;
    display                   : flex;
    width                     : 702rem/@number;
    height                    : 172rem/@number;
    margin                    : 0 auto;
    border-bottom-left-radius : 20rem/@number;
    border-bottom-right-radius: 20rem/@number;

    .xsg_b_title {
        box-sizing: border-box;
        width     : 173rem/@number;
        height    : 172rem/@number;
        padding   : 47rem/@number 18rem/@number 0;

        h3 {
            height   : 45rem/@number;
            font-size: 32rem/@number;
            color    : #444;
        }

        p {
            height   : 32rem/@number;
            font-size: 24rem/@number;
            color    : #999;
        }
    }

    .xsg_b_c {
        display: flex;
        width  : 508rem/@number;
        height : 172rem/@number;

        .xsg_b_cl {
            display        : flex;
            flex-direction : column;
            justify-content: center;
            align-items    : center;
            width          : 120rem/@number;
            height         : 172rem/@number;

            img {
                width : 100rem/@number;
                height: 100rem/@number;
            }

            p {
                width      : 120ren/@number;
                height     : 30rem/@number;
                font-size  : 22rem/@number;
                color      : #333;
                white-space: nowrap;
            }
        }
    }
}

// 苏宁大条
.sudt {
    width  : 703rem/@number;
    height : 66rem/@number;
    display: flex;
    margin : 0 auto;

    .sudt_l {
        img {
            margin: 19rem/@number 18rem/@number 16rem/@number;
            width : 112rem/@number;
            height: 31rem/@number;
        }
    }

    .sudt_r {
        li {
            height     : 66rem/@number;
            display    : flex;
            align-items: center;

            span {
                width           : 56rem/@number;
                height          : 24rem/@number;
                background-color: #ffcc00;
                margin          : 0 12rem/@number 0 0;
                padding         : 0 10rem/@number;
                font-size       : 18rem/@number;
                border-radius   : 12rem/@number;
                box-sizing      : border-box;
            }

            p {
                width        : 450rem/@number;
                height       : 36rem/@number;
                color        : #333;
                font-size    : 24rem/@number;
                white-space  : nowrap;
                overflow     : hidden;
                text-overflow: ellipsis;
            }
        }
    }
}

// images3
.images3 {
    position       : relative;
    width          : 750rem/@number;
    height         : 230rem/@number;
    background     : url(../images/suang11.gif) no-repeat center center;
    background-size: 750rem/@number;

    ul {
        li {
            position: absolute;
            left    : 55rem/@number;
            bottom  : 55rem/@number;
            width   : 123rem/@number;
            height  : 123rem/@number;

            img {
                width        : 123rem/@number;
                height       : 123rem/@number;
                border-radius: 20rem/@number;
            }
        }
    }
}

// images4
.images4 {
    width  : 750rem/@number;
    height : 210rem/@number;
    display: flex;

    img {
        width : 250rem/@number;
        height: 210rem/@number;
    }
}

// images5
.images5 {
    display  : flex;
    flex-wrap: wrap;
    width    : 750rem/@number;
    height   : 600rem/@number;

    .images5_1 {
        position       : relative;
        width          : 196rem/@number;
        height         : 300rem/@number;
        background     : url(../images/images51.png) no-repeat center center;
        background-size: 100%;

        img {
            position: absolute;
            top     : 40rem/@number;
            left    : 40rem/@number;
            width   : 140rem/@number;
            height  : 140rem/@number;
        }

        p {
            position : absolute;
            top      : 195rem/@number;
            left     : 50rem/@number;
            font-size: 26rem/@number;
            color    : #fff;
        }

        span {
            position : absolute;
            top      : 225rem/@number;
            left     : 70rem/@number;
            color    : #fff;
            font-size: 22rem/@number;
        }
    }

    .images5_2 {
        position       : relative;
        width          : 179rem/@number;
        height         : 300rem/@number;
        background     : url(../images/images52.png) no-repeat center center;
        background-size: 100%;

        img {
            position: absolute;
            top     : 40rem/@number;
            left    : 25rem/@number;
            width   : 140rem/@number;
            height  : 140rem/@number;
        }

        p {
            position : absolute;
            top      : 195rem/@number;
            left     : 40rem/@number;
            font-size: 26rem/@number;
            color    : #fff;
        }

        span {
            position : absolute;
            top      : 225rem/@number;
            left     : 55rem/@number;
            color    : #fff;
            font-size: 22rem/@number;
        }
    }

    .images5_3 {
        position       : relative;
        width          : 196rem/@number;
        height         : 300rem/@number;
        background     : url(../images/images53.png) no-repeat center center;
        background-size: 100%;

        img {
            position: absolute;
            top     : 40rem/@number;
            left    : 20rem/@number;
            width   : 140rem/@number;
            height  : 140rem/@number;
        }

        p {
            position : absolute;
            top      : 195rem/@number;
            left     : 35rem/@number;
            font-size: 26rem/@number;
            color    : #fff;
        }

        span {
            position : absolute;
            top      : 225rem/@number;
            left     : 55rem/@number;
            color    : #fff;
            font-size: 22rem/@number;
        }
    }
}

.bank {
    width     : 750rem/@number;
    height    : 20rem/@number;
    background: url(../images/tjbd_hh.png) no-repeat center center;
}

// 推荐榜单
.tjbd {
    width     : 750rem/@number;
    height    : 833rem/@number;
    margin-top: 20rem/@number;

    .tjbd_h {
        width : 750rem/@number;
        height: 60rem/@number;

        img {
            width : 100%;
            height: 100%;
        }
    }

    .tjbd_three {
        display        : flex;
        justify-content: space-between;
        width          : 702rem/@number;
        height         : 266rem/@number;
        margin         : 0 24rem/@number 13rem/@number;

        div {
            position        : relative;
            width           : 226rem/@number;
            height          : 266rem/@number;
            background-color: #fff;
            border-radius   : 20rem/@number;
            overflow        : hidden;

            .img_c {
                position: absolute;
                width   : 150rem/@number;
                height  : 150rem/@number;
                margin  : 15rem/@number 38rem/@number 0;
            }

            span {
                position        : absolute;
                bottom          : 69rem/@number;
                left            : 50%;
                transform       : translate(-50%, 0);
                width           : 100rem/@number;
                height          : 34rem/@number;
                line-height     : 34rem/@number;
                display         : block;
                color           : #d9a87a;
                font-size       : 22rem/@number;
                text-align      : center;
                border          : 2rem/@number solid #d9a87a;
                border-radius   : 17rem/@number;
                background-color: #fff;
                z-index         : 1;
            }

            .p1 {
                position   : absolute;
                bottom     : 35rem/@number;
                left       : 50%;
                transform  : translate(-50%, 0);
                font-size  : 26rem/@number;
                color      : #fff;
                margin     : 31rem/@number 3rem/@number 3rem/@number 0;
                z-index    : 1;
                white-space: nowrap;
            }

            .p2 {
                position   : absolute;
                bottom     : 5rem/@number;
                left       : 50%;
                transform  : translate(-50%, 0);
                font-size  : 22rem/@number;
                color      : #fff;
                z-index    : 1;
                white-space: nowrap;
            }

            .img_b {
                position: absolute;
                left    : 0;
                bottom  : 0;
                width   : 226rem/@number;
                height  : 93rem/@number;
            }
        }
    }

    .tjbd_four {
        display         : flex;
        flex-wrap       : wrap;
        width           : 702rem/@number;
        height          : 481rem/@number;
        margin          : 0 auto;
        background-color: #fff;
        border-radius   : 20rem/@number;

        div {
            width  : 350rem/@number;
            height : 240rem/@number;
            padding: 21rem/@number 18rem/@number 16rem/@number;

            .tjbd_four_h {
                display: flex;
                width  : 314rem/@number;
                height : 32rem/@number;
                padding: 0 !important;


                .span1 {
                    display    : block;
                    width      : 182rem/@number;
                    height     : 32rem/@number;
                    font-size  : 26rem/@number;
                    color      : #333333;
                    white-space: nowrap;
                }

                .span2 {
                    display         : block;
                    width           : 90rem/@number;
                    height          : 28rem/@number;
                    color           : #ab813a;
                    background-color: #f9f5ee;
                    font-size       : 22rem/@number;
                    margin-left     : 12rem/@number;
                    padding         : 0 12rem/@number;
                    border-radius   : 14rem/@number;
                    box-sizing      : border-box;
                }
            }

            p {
                height    : 30rem/@number;
                font-size : 24rem/@number;
                color     : #999;
                margin-top: 6rem/@number;
            }

            img {
                width: 140rem/@number;
            }
        }
    }
}

// 猜你喜欢
.cnxh {
    width : 702rem/@number;
    height: 800rem/@number;
    margin: 0 auto;

    .cnxh_h {
        width : 702rem/@number;
        height: 60rem/@number;

        img {
            width : 100%;
            height: 100%;
        }
    }

    .cnxh_content {
        width          : 702rem/@number;
        display        : flex;
        justify-content: space-between;
        flex-wrap      : wrap;

        .cnxh_c {
            width                     : 342rem/@number;
            height                    : 542rem/@number;
            margin-bottom             : 18rem/@number;
            padding-bottom            : 18rem/@number;
            background-color          : #fff;
            border-bottom-left-radius : 20rem/@number;
            border-bottom-right-radius: 20rem/@number;

            img {
                width        : 342rem/@number;
                height       : 342rem/@number;
                border-radius: 10rem/@number;
            }

            .p1 {
                width             : 318rem/@number;
                height            : 68rem/@number;
                line-height       : 34rem/@number;
                font-size         : 26rem/@number;
                margin            : 18rem/@number 12rem/@number 0;
                color             : #333;
                overflow          : hidden;
                display           : -webkit-box;
                -webkit-line-clamp: 2;
                text-overflow     : ellipsis;
                -webkit-box-orient: vertical;
            }

            .p2 {
                display: flex;
                width  : 269rem/@number;
                height : 24rem/@number;
                margin : 11rem/@number 12rem/@number 24rem/@number;

                .span1 {
                    display         : block;
                    width           : 48rem/@number;
                    height          : 24rem/@number;
                    color           : #333;
                    background-color: #fc0;
                    font-size       : 18rem/@number;
                    white-space     : nowrap;
                    margin          : 0 6rem/@number 2rem/@number 0;
                    padding         : 3rem/@number 6rem/@number;
                    border-radius   : 10rem/@number;
                    box-sizing      : border-box;
                }

                .span2,
                .span3 {
                    height       : 24rem/@number;
                    line-height  : 17rem/@number;
                    font-size    : 20rem/@number;
                    color        : #333;
                    border       : 1rem/@number solid #fb0;
                    margin       : 0 3rem/@number 2rem/@number 2rem/@number;
                    padding      : 2rem/@number 12rem/@number;
                    border-radius: 6rem/@number;
                    box-sizing   : border-box;
                }


            }

        }

        .cnxh_f {
            display    : flex;
            position   : relative;
            align-items: flex-end;
            width      : 330rem/@number;
            height     : 38rem/@number;



            .span1 {
                display    : block;
                font-size  : 24rem/@number;
                width      : 24rem/@number;
                height     : 28rem/@number;
                color      : #f42;
                font-weight: 800;
            }

            .span2 {
                display    : block;
                height     : 36rem/@number;
                line-height: 36rem/@number;
                font-size  : 36rem/@number;
                color      : #f42;
                font-weight: 800;
            }

            .span3 {
                display    : block;
                height     : 37rem/@number;
                line-height: 37rem/@number;
                font-size  : 20rem/@number;
                margin-left: 13rem/@number;
                color      : #999;
            }

            i {
                position  : absolute;
                right     : 20rem/@number;
                bottom    : 50%;
                transform : translate(0, 50%);
                background: url(../images/gg.png) no-repeat center center;
                width     : 40rem/@number;
                height    : 20rem/@number;
            }
        }
    }
}